<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "tmall1.brand_table".
 *
 * @property integer $id
 * @property string $brandname
 * @property string $logo
 * @property string $branddesc
 * @property string $weburl
 * @property integer $is_show
 * @property integer $recommend
 * @property integer $train
 * @property string $q_index
 * @property integer $updatetime
 * @property integer $isdel
 * @property integer $isdone
 * @property integer $brand_no
 */
class BrandTable extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'tmall1.brand_table';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['brandname', 'logo', 'branddesc', 'weburl', 'q_index'], 'required'],
            [['branddesc'], 'string'],
            [['is_show', 'recommend', 'train', 'updatetime', 'isdel', 'isdone', 'brand_no'], 'integer'],
            [['brandname'], 'string', 'max' => 60],
            [['logo', 'weburl'], 'string', 'max' => 255],
            [['q_index'], 'string', 'max' => 1],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'brandname' => 'Brandname',
            'logo' => 'Logo',
            'branddesc' => 'Branddesc',
            'weburl' => 'Weburl',
            'is_show' => 'Is Show',
            'recommend' => 'Recommend',
            'train' => 'Train',
            'q_index' => 'Q Index',
            'updatetime' => 'Updatetime',
            'isdel' => 'Isdel',
            'isdone' => 'Isdone',
            'brand_no' => 'Brand No',
        ];
    }
}
